import {getceshiData} from "@/services/api";

export default  {
namespace:'ceshi',
state:{
    list:[],
  
},



effects: {
    *fetchList(_, { call, put }) {
      const response = yield call(getceshiData);
      yield put({
        type: 'show',
        payload: response,
      });
    },


},

  reducers: {
    show(state, action) {
      return {
        ...state,
        list: action.payload,
      };
    },

    
  },


}